package cn.com.nes.site.controller.project.vo;

import cn.com.nes.site.entity.vo.BaseVO;
import cn.com.nes.site.service.project.bo.EnableProjectServiceUserBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

/**
 * 启用/停用项目服务人员
 *
 * @Author: ShenWei
 * @Date: 2024/07/11/17:34
 */
@Data
public class EnableProjectServiceUserVO extends BaseVO {

    /**
     * id
     */
    @NotNull(message = "id")
    private Long id;

    /**
     * 启用标识 默认启用
     */
    @NotNull(message = "启用标识 默认启用")
    private Integer enableIdentity = 0;

    public EnableProjectServiceUserBO convertToBo() {
        EnableProjectServiceUserBO bo = new EnableProjectServiceUserBO();
        BeanUtils.copyProperties(this, bo);
        return bo;
    }
}
